package cn.chinaunicom.sdsi.frm.workflow.ext;

import java.util.HashMap;
import java.util.Map;

import org.aspectj.weaver.patterns.HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.chinaunicom.sdsi.frm.base.BaseService;
import cn.chinaunicom.sdsi.frm.sys.dao.mybatis.SysStaffOrgMapper;
@Component
public class StaffBaseInfoImpl extends BaseService implements StaffBaseInfo{

	@Autowired
	private SysStaffOrgMapper sysStaffOrgMapper;
	@Override
	public String getStaffId(String staffOrgId)
	{
		Map<String,Object> map = sysStaffOrgMapper.getStaffId(Integer.parseInt(staffOrgId));
		return map.get("STAFF_ID").toString();
	}

	@Override
	public String getStaffName(String staffOrgId)
	{
		Map<String,Object> map = sysStaffOrgMapper.getStaffName(Integer.parseInt(staffOrgId));
		return map.get("STAFF_NAME").toString();
	}

	@Override
	public String getStaffOrgId(String staffOrgId)
	{
		Map<String,Object> map = sysStaffOrgMapper.getStaffOrgId(Integer.parseInt(staffOrgId));
		return map.get("ORG_ID").toString();
	}

	@Override
	public String getStaffOrgName(String staffOrgId)
	{
		Map<String,Object> map = sysStaffOrgMapper.getStaffOrgName(Integer.parseInt(staffOrgId));
		return map.get("ORG_NAME").toString();
	}
	
	
}